import server from "@/utils/request";

//教师列表
export function teacher_getTeacherByPage(playold: any = {}) {
    return server.get("/school/teacher/getTeacherByPage", { params: playold })
}

// 学校列表
export function school_getSchoolByPage(playold: any = {}) {
    return server.get("/school/school/getSchoolByPage", { params: playold })
}

// 根据id学校列表
export function school_getSchoolById(id: any) {
    return server.get("/school/school/getSchoolById/" + id)
}


//学生列表
export function student_getStudentByPage(playold: any = {}) {
    return server.get("/school/student/getStudentByPage", { params: playold })
}


//评件列表
export function evaluate_getEvaluateByPage(playold: any = {}) {
    return server.get("/school/evaluate/getEvaluateByPage", { params: playold })
}

//根据id评件列表
export function evaluate_getEvaluateById(id: any) {
    return server.get("/school/evaluate/getEvaluateById/" + id)
}


//评件类型
export function evaluateType_getEvaluateTypeAll(playold: any = {}) {
    return server.get("/school/evaluateType/getEvaluateTypeAll", { params: playold })
}

//删除评件
export function evaluate_deleteEvaluate(id: any) {
    return server.delete("/school/evaluate/deleteEvaluate/" + id)
}

//增加评件
export function evaluate_saveEvaluate(playold: any = {}) {
    return server.post("/school/evaluate/saveEvaluate?" + 'sId' + '=' + playold.sId + '&' + 'tId' + '=' + playold.tId + '&' + 'typeId' + '=' + playold.typeId + '&' + 'score' + '=' + playold.score + '&' + 'detail' + '=' + playold.detail, playold)
}

//教师月消息排行
export function messageStatistics_teacherMsgNum(playold: any = {}) {
    return server.get("/school/messageStatistics/teacherMsgNum", { params: playold })
}

//学校月消息排行
export function messageStatistics_schoolMsgNum(playold: any = {}) {
    return server.get("/school/messageStatistics/schoolMsgNum", { params: playold })
}



//相册数量
export function messageStatistics_photosNum(playold: any = {}) {
    return server.get("/school/messageStatistics/photosNum", { params: playold })
}

//通知数量
export function messageStatistics_noticeNum(playold: any = {}) {
    return server.get("/school/messageStatistics/noticeNum", { params: playold })
}

//评价数量
export function messageStatistics_evaluateNum(playold: any = {}) {
    return server.get("/school/messageStatistics/evaluateNum", { params: playold })
}